import requests

headers = {
    'headers': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',

}

session = requests.Session()
login_url = 'https://www.gying.org/user/login'
data = {
    'siteid': 1,
    'dosubmit': 1,
    'cookietime': 10506240,
    'username': '15225989853',
    'password': 'zdz123123'
}
login_response = session.post(login_url, headers=headers, data=data)
url = 'https://www.gying.org/'
response = session.get(url)

url = 'https://www.gying.org/'
response = session.get(url)

id = '3Bb7'

# 收藏

# favorite_add_url = f'https://www.gying.org/res/favorite/add/mv/{id}'
# favorite_add_response = session.get(favorite_add_url)
# print(favorite_add_response.text)

# 取消收藏
favorite_del_url = f'https://www.gying.org/res/favorite/del/mv/{id}'
favorite_del_response = session.get(favorite_del_url)
print(favorite_del_response)
